package org.bot.server.event.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.bot.server.event.entity.BotEvent;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author 沧月
 * @create 0003 2023/10/3 18:51
 * @description <description class purpose>
 */
@Mapper
@Repository
public interface BotEventMapper extends BaseMapper<BotEvent> {

    @Select("select event as value,eventName as label from bot_event where clientId = #{clientId}")
    List<Map<String,Object>> list(@Param("clientId") String clientId);
}



